package com.dianqiu.common.bean;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import com.dianqiu.base.bean.BaseTO;

/**
 * DqCity entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "dq_city", catalog = "dq_dev")
public class DqCityTO  extends BaseTO implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer cityId;
	private String cityName;
	private String cityNameEn;
	private String cityNameSc;
	private String cityNameTs;
	private Set<DqClubsTO> dqClubses = new HashSet<DqClubsTO>(0);
	private Set<DqStadiumsTO> dqStadiumses = new HashSet<DqStadiumsTO>(0);

	@Id
	@Column(name = "CITY_ID", unique = true, nullable = false)
	public Integer getCityId() {
		return this.cityId;
	}

	public void setCityId(Integer cityId) {
		this.cityId = cityId;
	}

	@Column(name = "CITY_NAME", length = 45)
	public String getCityName() {
		return this.cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}

	@Column(name = "CITY_NAME_EN", length = 200)
	public String getCityNameEn() {
		return this.cityNameEn;
	}

	public void setCityNameEn(String cityNameEn) {
		this.cityNameEn = cityNameEn;
	}

	@Column(name = "CITY_NAME_SC", length = 200)
	public String getCityNameSc() {
		return this.cityNameSc;
	}

	public void setCityNameSc(String cityNameSc) {
		this.cityNameSc = cityNameSc;
	}

	@Column(name = "CITY_NAME_TS", length = 200)
	public String getCityNameTs() {
		return this.cityNameTs;
	}

	public void setCityNameTs(String cityNameTs) {
		this.cityNameTs = cityNameTs;
	}

	
	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "dqCity")
	public Set<DqClubsTO> getDqClubses() {
		return this.dqClubses;
	}

	public void setDqClubses(Set<DqClubsTO> dqClubses) {
		this.dqClubses = dqClubses;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "dqCity")
	public Set<DqStadiumsTO> getDqStadiumses() {
		return this.dqStadiumses;
	}

	public void setDqStadiumses(Set<DqStadiumsTO> dqStadiumses) {
		this.dqStadiumses = dqStadiumses;
	}

}